<?php
/**
 * Created by PhpStorm.
 * User: YUWENXUAN
 * Date: 2017/4/10
 * Time: 16:20
 */
echo "<!DOCTYPE html>";
echo '<html lang="en">';
echo "<head>";
echo    '<meta charset="UTF-8">';
echo    "<title>Title</title>";
echo "</head>";
echo "<body>";

echo '<h1 style="text-align: center;font-size: 16px;">文件目录操作系统</h1>';
function __autoload($className){
    include $className."_class.php";
}
if (isset($_POST["action"])){
    $fileation = new FileAction($_POST["filename"],$_POST["action"]);
    $fileaction ->option();
}
if(isset($_GET["dirname"])){
    $fs = new FileSystem($_GET["dirname"]);
}else{
    $fs = new Filesystem();
}
echo "<hr>";
$fs ->getMenu();
echo "<hr>";
$fs ->fileList();
$fs ->getDirInfo();

$fs ->getDiskSpace();



echo "</body>";
echo "</html>";
